package com.zzzy.sys.vo.usermanage;

import com.zzzy.common.vo.PageParam;
import com.zzzy.framework.common.annotation.RangeValuesCheck;
import com.zzzy.framework.common.enums.sys.UserStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;


@Schema(description = "用户分页查询")
@Data
public class UserPageReq extends PageParam {

    @Schema(description = "姓名、昵称", example = "测试01")
    @Length(max = 30, message = "真实姓名不能超过30个字符")
    private String nickName;

    @Schema(description = "手机号码", example = "13333333333")
    @Length(max = 11, message = "手机号码不能超过11个字符")
    private String phoneNumber;

    @Schema(description = "部门ID")
    private Long deptId;

    @Schema(description = "状态：新建、启用、暂停、离职", example = "新建")
    @RangeValuesCheck(enumValueRange = UserStatusEnum.class, allowBlank = true, message = "用户状态填写错误")
    private String status;

}
